﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PresentationLayer
{
    public partial class Main : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UserLoggedIn"] != null)
            {
                List<string> list = Session["UserLoggedIn"] as List<string>;
                string employeeName = list[5];
                lblEmployeeName.Text = employeeName;
            }
            else
            {
                lblEmployeeName.Text = "Guest";
            }
        }
    }
}